tests: Add test for 'initial' and 'inherit' on shorthands
authorBenjamin Otte <otte@redhat.com>
Mon, 2 Jan 2012 14:52:21 +0000 (15:52 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 9 Jan 2012 17:37:55 +0000 (18:37 +0100)
tests/css/parser/Makefile.am
tests/css/parser/value-inherit-shorthand.css [new file with mode: 0644]
tests/css/parser/value-inherit-shorthand.ref.css [new file with mode: 0644]
tests/css/parser/value-initial-shorthand.css [new file with mode: 0644]
tests/css/parser/value-initial-shorthand.ref.css [new file with mode: 0644]

index 97adb11c6290161e6d53bea82f6d9f2a24042516..4a1bcf02f6e30d72c28829f43384efb5e27528e6 100644 (file)
@@ -294,7 +294,11 @@ EXTRA_DIST += \
        single-slash.ref.css \
        test.png \
        value-inherit.css \
+       value-inherit-shorthand.css \
+       value-inherit-shorthand.ref.css \
        value-intial.css \
+       value-intial-shorthand.css \
+       value-intial-shorthand.ref.css \
        value-none.css \
        value-none.errors \
        value-none.ref.css \
diff --git a/tests/css/parser/value-inherit-shorthand.css b/tests/css/parser/value-inherit-shorthand.css
new file mode 100644 (file)
index 0000000..e3d318f
--- /dev/null
@@ -0,0 +1,9 @@
+* {
+  border-color: inherit;
+  border-image: inherit;
+  border-radius: inherit;
+  border-width: inherit;
+  font: inherit;
+  margin: inherit;
+  padding: inherit;
+}
diff --git a/tests/css/parser/value-inherit-shorthand.ref.css b/tests/css/parser/value-inherit-shorthand.ref.css
new file mode 100644 (file)
index 0000000..4343ba4
--- /dev/null
@@ -0,0 +1,31 @@
+* {
+  border-bottom-color: inherit;
+  border-bottom-left-radius: inherit;
+  border-bottom-right-radius: inherit;
+  border-bottom-width: inherit;
+  border-image-repeat: inherit;
+  border-image-slice: inherit;
+  border-image-source: inherit;
+  border-image-width: inherit;
+  border-left-color: inherit;
+  border-left-width: inherit;
+  border-right-color: inherit;
+  border-right-width: inherit;
+  border-top-color: inherit;
+  border-top-left-radius: inherit;
+  border-top-right-radius: inherit;
+  border-top-width: inherit;
+  font-family: inherit;
+  font-size: inherit;
+  font-style: inherit;
+  font-variant: inherit;
+  font-weight: inherit;
+  margin-bottom: inherit;
+  margin-left: inherit;
+  margin-right: inherit;
+  margin-top: inherit;
+  padding-bottom: inherit;
+  padding-left: inherit;
+  padding-right: inherit;
+  padding-top: inherit;
+}
diff --git a/tests/css/parser/value-initial-shorthand.css b/tests/css/parser/value-initial-shorthand.css
new file mode 100644 (file)
index 0000000..dbcd4bb
--- /dev/null
@@ -0,0 +1,9 @@
+* {
+  border-color: initial;
+  border-image: initial;
+  border-radius: initial;
+  border-width: initial;
+  font: initial;
+  margin: initial;
+  padding: initial;
+}
diff --git a/tests/css/parser/value-initial-shorthand.ref.css b/tests/css/parser/value-initial-shorthand.ref.css
new file mode 100644 (file)
index 0000000..e6273e3
--- /dev/null
@@ -0,0 +1,31 @@
+* {
+  border-bottom-color: initial;
+  border-bottom-left-radius: initial;
+  border-bottom-right-radius: initial;
+  border-bottom-width: initial;
+  border-image-repeat: initial;
+  border-image-slice: initial;
+  border-image-source: initial;
+  border-image-width: initial;
+  border-left-color: initial;
+  border-left-width: initial;
+  border-right-color: initial;
+  border-right-width: initial;
+  border-top-color: initial;
+  border-top-left-radius: initial;
+  border-top-right-radius: initial;
+  border-top-width: initial;
+  font-family: initial;
+  font-size: initial;
+  font-style: initial;
+  font-variant: initial;
+  font-weight: initial;
+  margin-bottom: initial;
+  margin-left: initial;
+  margin-right: initial;
+  margin-top: initial;
+  padding-bottom: initial;
+  padding-left: initial;
+  padding-right: initial;
+  padding-top: initial;
+}